<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <a href="/add">增加</a>
    <form action="/find" method="GET">
        查询:<input type="text" name="name" value="" placeholder="输入需要查询的姓名"><input type="submit" value="query">
    </form>
    <table border="1" cellspacing="0" width="700">
        <tr>
            <td>序号</td>
            <td>姓名</td>
            <td>年龄</td>
            <td>操作</td>
        </tr>
        <% data.forEach(function(item,key){ %>
        <tr>
            <td><%= key+1 %></td>
            <td><%= item.name %></td>
            <td><%= item.age %></td>
            <td><a href="/up">编辑</a><a href="/del">删除</a></td>
        </tr>
        <% }) %>
    </table>
</body>
</html>